<template>
	<view class="wrapper">
		<view class="header">
			<view class="action">
				<view class="left flexs">
					<view class="type active">
						<view class="name">自选</view>
						<image src="../../static/analysis/analysis/icon1.png" mode=""></image>
					</view>
					<view class="type">
						<view class="name">市场</view>
					</view>
				</view>
				<view class="right">
					<image src="../../static/analysis/analysis/icon2.png" mode=""></image>
				</view>
			</view>
			<view class="info">
				<view class="left">
					<view class="stockmarket">
						<view class="number">2830.53</view>
						<view class="subtitle">沪市<text>-0.86%</text></view>
					</view>
					<view class="stockmarket">
						<view class="number">2830.53</view>
						<view class="subtitle">沪市<text>-0.86%</text></view>
					</view>
					<view class="stockmarket">
						<view class="number">2830.53</view>
						<view class="subtitle">沪市<text>-0.86%</text></view>
					</view>
				</view>
				<view class="right">
					<view class="module">
						<image src="../../static/analysis/analysis/icon3.png" mode=""></image>
						<view class="name">资金</view>
					</view>
					<view class="module"  @tap="jumpNavigateTo('/pages/analysis/industry')">
						<image src="../../static/analysis/analysis/icon4.png" mode=""></image>
						<view class="name">资讯</view>
					</view>
				</view>
			</view>
		</view>
		<view class="line"></view>
		<view class="checkmarket">
			<view class="title">自选股</view>
			<view class="action-wrapper">
				<view class="action-li">
					<image src="../../static/analysis/analysis/icon5.png" mode=""></image>
					<view class="name">编辑</view>
				</view>
				<view class="action-li">
					<view class="name">最新</view>
					<image src="../../static/analysis/analysis/icon6.png" class="label-ud"  mode=""></image>
				</view>
				<view class="action-li">
					<view class="name">涨跌</view>
					<image src="../../static/analysis/analysis/icon6.png" class="label-ud" mode=""></image>
				</view>
				<view class="action-li">
					<view class="name">幅度</view>
					<image src="../../static/analysis/analysis/icon6.png" class="label-ud" mode=""></image>
				</view>
			</view>
			<view class="marketlist" @tap="jumpNavigateTo('/pages/analysis/optional')">
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="marketlist-li">
					<view class="info1">
						<view class="name">上证指数</view>
						<view class="number">1A001</view>
					</view>
					<view class="info2">2806.09</view>
					<view class="info2">-24.44</view>
					<view class="info3">-0.86%</view>
				</view>
				<view class="addaction">
					<image src="../../static/analysis/analysis/icon7.png" mode=""></image>
					<text>添加自选股</text>
				</view>
			</view>
		</view>
		<view class="move" @tap="jumpNavigateTo('/pages/analysis/unusual')">
			<view class="left">
				<image src="../../static/analysis/analysis/title1.png" mode=""></image>
			</view>
			<view class="right flexs">
				<view>09:50:30</view>
				<view>智信</view>
				<view>大单卖出</view>
				<view>7821收</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
	
		},
		methods: {
			jumpNavigateTo(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		width: 100%;
		height: 100%;
		background-color: #fff;
	}
	.wrapper {
		height: 100%;
		box-sizing: border-box;
	}
	.header{
		padding: 40rpx 33rpx;
		background-color: #fff;
		
		.action{
			width: 100%;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.left{
				font-weight: 500;
				font-size: 32rpx;
				color: #262626;
				line-height: 36rpx;
				text-align: center;
				.type{
					margin-right: 48rpx;
					text-align: center;
				}
				.active{
					font-weight: bold;
					font-size: 48rpx;
					color: #08377D;
					line-height: 36rpx;
					margin-top: 32rpx;
				}
				image{
					width: 56rpx;
					height: 11rpx;
					position: relative;
					top: -7px;
				}
			}
			.right image{
				width: 26rpx;
				height: 27rpx;
			}
		}
		.info{
			display: flex;
			justify-content: space-between;
			.left{
				display: flex;
				justify-content: flex-start;
				.stockmarket{
					margin-right: 65rpx;
					.number{
						font-weight: bold;
						font-size: 32rpx;
						color: #2A9321;
					}
					.subtitle{
						font-weight: 500;
						font-size: 20rpx;
						color: #262626;
						text{
							font-weight: bold;
							font-size: 20rpx;
							color: #2A9321;
						}
					}
				}
			}
			.right{
				display: flex;
				justify-content: flex-start;
				.module{
					font-weight: 500;
					font-size: 24rpx;
					color: #262626;
					text-align: center;
					line-height: 36rpx;
					image{
						height: 28rpx;
						width: 28rpx;
					}
				}
			}
		}
	}
	.line{
		width: 100%;
		height: 32rpx;
		background-color: #F6F5FA;
	}
	.checkmarket{
		padding: 33rpx;
		background-color: #fff;
		margin-bottom: 32rpx;
		.title{
			font-weight: bold;
			font-size: 28rpx;
			color: #262626;
			position: relative;
			padding-left: 24rpx;
		}
		.title::before{
			content: '';
			position: absolute;
			top: 10rpx;
			left: 0;
			z-index: 1;
			width: 6rpx;
			height: 24rpx;
			background-color: #08377D;
			border-radius: 2rpx;
		}
		.action-wrapper{
			margin-top: 24rpx;
			display: flex;
			justify-content: space-between;
			border-bottom: 1rpx solid #E5E5E5;
			border-top: 1rpx solid #E5E5E5;
			.action-li{
				height: 71rpx;
				display: flex;
				justify-content: flex-start;
				align-items: center;
				font-weight: 500;
				font-size: 24rpx;
				color: #999999;
				
				image{
					height: 23rpx;
					width: 23rpx;
					margin-right: 10rpx;
				}
				.label-ud{
					height: 19rpx;
					width: 13rpx;
					margin-left: 10rpx;
				}
			}
		}
		.marketlist{
			.marketlist-li{
				height: 104rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1rpx solid #E5E5E5;
				.info1{
					  .name{
					  	font-weight: bold;
					  	font-size: 28rpx;
					  	color: #262626;
					  }
					  .number{
					  	font-weight: 500;
					  	font-size: 20rpx;
					  	color: #999999;
					  }
				}
				.info2{
					font-weight: bold;
					font-size: 28rpx;
					color: #2A9321;
				}
				.info3{
					width: 146rpx;
					height: 48rpx;
					line-height: 48rpx;
					text-align: center;
					color: #fff;
					background: #2A9321;
					border-radius: 8rpx;
					font-weight: bold;
					font-size: 28rpx;
					color: #FFFFF;
				}
				
			}
			.addaction{
				display: flex;
				justify-content: center;
				align-items: center;
				margin: 57rpx auto;
				font-weight: 500;
				font-size: 28rpx;
				color: #999999;
				image{
					width: 32rpx;
					height: 32rpx;
					margin-right: 12rpx;
				}
			}
		}
	}
	.move{
		width: 100%;
		box-sizing: border-box;
		position: fixed;
		left: 0;
		bottom: 80rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 33rpx;
		background-color: #fff;
		.left{
			width: 140rpx;
			margin-right: 24rpx;
			border-right: 1rpx solid #E5E5E5;
			image {
				width: 117rpx;
				height: 26rpx;
			}
		}
		.right{
			font-weight: bold;
			font-size: 24rpx;
			color: #2A9321;
			flex: 1;
		}
	}
</style>